<template>
  <div>

 <el-form>
      <el-form-item label="商品详情" prop="details">
            <div id="editor"></div>
        </el-form-item>
         </el-form>
  </div>
</template>

<script>
import Editor from 'wangeditor'
export default {
data(){
    return{
        editor: null,
         details: [
          {required: true, message: '详情不能为空'}
        ]
    }
},
mounted(){
this.editor = new Editor("#editor")
 this.editor.create()
},



}
</script>

<style>

</style>